package cn.com.surker.sale.service;

import cn.com.surker.sale.entity.SaleStrengthAdjustPrice;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.com.surker.spring.RestResultDto;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.Date;
import java.util.List;

/**
* <p>
    * 销售合同信息标号调整价 服务类
    * </p>
*
* @author admin
* @since 2024-08-01
*/
public interface SaleStrengthAdjustPriceBaseService extends IService<SaleStrengthAdjustPrice> {

    /**
     * 根据合同信息查询调整价格
     * @param contractId
     * @return
     */
    List<SaleStrengthAdjustPrice> findContract(Long contractId, Integer type);

    /**
     * 保存调整信息
     * @param strengthAdjustPrice
     * @return
     */
    Integer saveAdjust(SaleStrengthAdjustPrice strengthAdjustPrice);

    /**
     * 修改调整信息
     * @param strengthAdjustPrice
     * @return
     */
    Integer updateAdjust(SaleStrengthAdjustPrice strengthAdjustPrice);

    Integer updateAdjustV1(SaleStrengthAdjustPrice strengthAdjustPrice);
    /**
     * 修改合同调整类型信息
     * @param contractId
     * @param type
     * @param content
     * @param creator
     * @return
     */
    Integer updateAdjustType(Long contractId, Integer type, Double price, Double rate, String creator);

    /**
     * 批量修改
     * @param adjustPrice
     * @return
     */
    Integer updateAdjustById(SaleStrengthAdjustPrice adjustPrice, String creator);
    /**
     * 批量保存
     * @return
     */
    Integer saveBatch(Long orgId, Long contractId, Integer type, Date takeTime, Double price,
                      Double taxPrice,Integer basisPriceType, String priceDay, Double rate, String creator,
                      Integer adjustPriceType);
}
